<?php
/**
 * Created by PhpStorm.
 * User: MIS
 * Date: 2018/10/29
 * Time: 15:20
 */
namespace Admin\Controller;
use Think\Controller;
class CommonController extends Controller
{
    public function verify(){
        $config =  array(
            'fontSize'    =>    30,    // 验证码字体大小
            'length'      =>    3,     // 验证码位数
            'useNoise'    =>    false, // 关闭验证码杂点
        );
        $verify= new \Think\Verify($config);//创建生成验证码类的对象
        $verify->entry();//生成验证码
    }
}